package com.ask.bitmap;

import java.util.Arrays;
import java.util.BitSet;

public class test {
    public static void main(String[] args) {
        int[] arr = new int[]{1, 7, 5000, 30000000};
        int maxArr = Arrays.stream(arr).max().getAsInt();
        BitSet bitSet = new BitSet(maxArr + 1);
        bitSet.set(5000);
        System.out.println(bitSet.get(5000));
     
    }
}
